package com.jill.jianghu.bean.base;

import java.io.Serializable;
import java.util.Date;

import com.opensymphony.xwork2.validator.annotations.DateRangeFieldValidator;
import com.opensymphony.xwork2.validator.annotations.RequiredFieldValidator;
import com.opensymphony.xwork2.validator.annotations.ValidatorType;

/**
 * 员工
 * @author 刘涛
 *
 */
public class Emploee implements Serializable{
	private static final long serialVersionUID = 1L;
	/**员工session标识*/
	public static String SESSION_USER = "_user";
	public static String USER_PERMISSION = "permission";
	private long empid;
	private String loginname;
	private String password;
	private String truename;
	private String sex;
	private String tel;
	private String qq;
	private int login_count;
	private int role;
	private Date register_time;
	private Date last_login_time;
	private String skin;
	private int stat;
	public long getEmpid() {
		return empid;
	}
	public void setEmpid(long empid) {
		this.empid = empid;
	}
	public String getLoginname() {
		return loginname;
	}
	public void setLoginname(String loginname) {
		this.loginname = loginname;
	}
	public String getPassword() {
		return password;
	}
	public void setPassword(String password) {
		this.password = password;
	}
	public String getTruename() {
		return truename;
	}

	@RequiredFieldValidator(type = ValidatorType.FIELD, message = "请输入真实姓名")
	public void setTruename(String truename) {
		this.truename = truename;
	}
	public String getSex() {
		return sex;
	}
	public void setSex(String sex) {
		this.sex = sex;
	}
	public String getTel() {
		return tel;
	}
	public void setTel(String tel) {
		this.tel = tel;
	}
	public String getQq() {
		return qq;
	}
	public void setQq(String qq) {
		this.qq = qq;
	}
	public int getLogin_count() {
		return login_count;
	}
	public void setLogin_count(int login_count) {
		this.login_count = login_count;
	}
	public int getRole() {
		return role;
	}
	public void setRole(int role) {
		this.role = role;
	}
	public Date getRegister_time() {
		return register_time;
	}
	@RequiredFieldValidator(fieldName="register_time", type = ValidatorType.FIELD, message = "请输入您的生日。")
	@DateRangeFieldValidator(fieldName="register_time",type = ValidatorType.SIMPLE, min = "new Date()", message = "生日不得小于${min}。")
	public void setRegister_time(Date register_time) {
		this.register_time = register_time;
	}
	public Date getLast_login_time() {
		return last_login_time;
	}
	public void setLast_login_time(Date last_login_time) {
		this.last_login_time = last_login_time;
	}
	public String getSkin() {
		return skin;
	}
	public void setSkin(String skin) {
		this.skin = skin;
	}
	public int getStat() {
		return stat;
	}
	public void setStat(int stat) {
		this.stat = stat;
	}

}
